<?php
function halt($data){
    var_dump($data);exit();
}
spl_autoload_register();


$user = new \vendor\User(2);
halt($user);
$user->name = 'king'.time();
$user->age = date('s');

$user->edit();